package com.secondkill.controller;

import com.secondkill.entity.MiaoshaUser;
import com.secondkill.result.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by IBM on 2018/7/11.
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @GetMapping("/info")
    @ResponseBody
    public Result<MiaoshaUser> getUser(MiaoshaUser miaoshaUser) {

        return Result.success(miaoshaUser);
    }
}
